import router from './router'
import { useAppStoreWithOut } from '@/store/modules/app'
import { useStorage } from '@/hooks/web/useStorage'

const appStore = useAppStoreWithOut()

const { getStorage } = useStorage()

if (getStorage('userInfo')) {
  appStore.setUserInfo(getStorage('userInfo'))
}